import { PrimaryGeneratedColumn , Column, Entity , OneToMany } from 'typeorm';
import { TeamRankData } from './team_rank_data';
import { NBAData } from './nba_data';

@Entity()
class SeasonType {

    @PrimaryGeneratedColumn("uuid")
    id?: string;

    @Column({
        type: "varchar",
        length: 255,
        nullable: false,
        comment: "赛季类型 1： 季前赛 | 2：常规赛  | 4： 季后赛",
    })
    name: string;

    @Column({
        type: "varchar",
        length: 255,
        comment: "赛季类型名称"
    })
    nameDisplay: string;

    // @OneToMany(type => TeamRankData,teamRankData => teamRankData.seasonType)
    // teamRankData: TeamRankData;

    // @OneToMany(type => NBAData,nbaData => nbaData.seasonType)
    // nbaData: NBAData;

}

export { SeasonType }